HEX
Server: nginx/1.26.0
System: Linux iZj6ceg0gjdkbpnmyl2cnnZ 5.15.60-1.el7.x86_64 #1 SMP Thu Aug 11 12:39:22 UTC 2022 x86_64
User: www (1000)
PHP: 7.0.33
Disabled: phpinfo,eval,passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,pfsockopen,fsocket,fsockopen
Upload Files
File: /data/wwwroot/sites/multitrustcapital.com/www/pma/vendor/phpmyadmin/sql-parser/src/Core.php
<?php

/**
 * Defines the core helper infrastructure of the library.
 */

namespace PhpMyAdmin\SqlParser;

class Core
{
    /**
     * Whether errors should throw exceptions or just be stored.
     *
     * @var bool
     *
     * @see static::$errors
     */
    public $strict = false;

    /**
     * List of errors that occurred during lexing.
     *
     * Usually, the lexing does not stop once an error occurred because that
     * error might be false positive or a partial result (even a bad one)
     * might be needed.
     *
     * @var \Exception[]
     *
     * @see Core::error()
     */
    public $errors = array();

    /**
     * Creates a new error log.
     *
     * @param \Exception $error the error exception
     *
     * @throws \Exception throws the exception, if strict mode is enabled
     */
    public function error($error)
    {
        if ($this->strict) {
            throw $error;
        }
        $this->errors[] = $error;
    }
}